package com.lyl.lawyer.dao;

import com.lyl.lawyer.model.dto.UserAddDto;
import com.lyl.lawyer.model.dto.UserFindDto;
import com.lyl.lawyer.model.dto.UserLoginDto;
import com.lyl.lawyer.model.dto.UserUpdateDto;
import com.lyl.lawyer.model.entity.UserModel;
import com.lyl.lawyer.model.vo.UserVo;

import java.util.List;

public interface UserMapper {

    int add(UserAddDto userAddDto);

    int updateInfo(UserUpdateDto userUpdateDto);

    UserModel findByUsernameAndPassword(UserLoginDto userLoginDto);

    int delete(Integer id);

    UserModel findById(Integer id);

    List<UserVo> findAll(UserFindDto userFindDto);

    int updateEnable(Integer id);

    int countFindAll(UserFindDto userFindDto);

    UserModel findByUserName(String username);

}
